package cn.four.hqServer.modules.withdraw.service;

import cn.four.hqServer.common.entity.HqCardInfo;
import cn.four.hqServer.common.result.Result;
import cn.four.hqServer.modules.withdraw.dto.WithdrawDto;

/**
* @author xqx
* @description 针对表【hq_card_info】的数据库操作Service
* @createDate 2023-02-23 14:01:37
*/
public interface xqxIHqWithdrawService {

//    1.根据银行卡号判断账户状态吗，正常-0、透支-1、冻结-2、注销-3
        int checkStateByCardId(WithdrawDto withdrawDto);
//    2.核对银行卡号和取款密码
        boolean checkCardPassword(WithdrawDto withdrawDto);
//    3.比较取款金额是否符合要求
        boolean compareBalance(WithdrawDto withdrawDto);
//    4.将取款记录存到相对应的表中
        boolean saveBalance(WithdrawDto withdrawDto);
//        冻结账户
        boolean updateState(WithdrawDto withdrawDto);
//     5.整合操作
        Result withdrawMoney(WithdrawDto withdrawDto) ;

}
